import Vue from 'vue';
import Vuex from 'vuex';
import Audio from './audio';


Vue.use(Vuex);


const store = new Vuex.Store({
    state: {
        state: "状态机",
    },

    mutations: {
        // 同步
        stateSetState(state,value){
            state.state = value;
        }
    },
	
    actions: {
        // 异步
        stateAcsetState(state,value){
            state.state = value;
        }
    },
	
    getters: {
        stateGetState(state){
            return state.state;
        }
    },

	modules:{
		Audio
	}
})


export default store